#include "mypushbutton.h"
#include <QDebug>
//MyPushButton::MyPushButton(QWidget *parent) : QPushButton(parent)
//{

//}
 MyPushButton:: MyPushButton(QString nolmalImg, QString pressImg)
 {
     this->nolmalImgPath = nolmalImg;
     this->pressImgPath =pressImg;
     QPixmap pix;
     bool ret=pix.load(nolmalImg);
     if(!ret)
     {
     qDebug()<<"图片加载失败";
     return;

     }
   // this->setFixedSize(pix.width(),pix.height());
      this->setFixedSize(200,120);
     this->setStyleSheet("QPushButton{border:0px;}");
     this->setIcon(pix);

      this->setIconSize(QSize(200,120));
     // this->setWindowTitle("炸弹人");



 }
